<?php
session_start();
    if ($_SESSION['login'] == '')
    {
        $currentFile = $_SERVER["PHP_SELF"];
        $parts = Explode('/', $currentFile);
        
        if($parts[count($parts) - 1] != 'login.php' && $parts[count($parts) - 1] != 'contact.php'){
            header('Location: ../login.php');
        }
    }
    
    if ($_SESSION['login'] != 'haennil') {
         header('Location: ../index.php');
    }
?>
<!DOCTYPE html>
<html>       
    <head>
        <meta name="viewport" content="width=device-width, initial-scale=1"> 
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Administration</title> 
        <link rel="stylesheet" href="../jquery/jquery.mobile-1.0.1.min.bis.css" />
        <link rel="stylesheet" href="../jquery/photoswipe.css" />
        <script src="../jquery/jquery-1.7.1.min.js"></script>
        <script src="../jquery/jquery.mobile-1.0.1.min.js"></script>
        <script src="../scrollTo/localscroll/jquery.localscroll.js"></script>
	<script src="../scrollTo/localscroll/jquery.scrollTo.js"></script>
	<script src="../scrollTo/lancement.js"></script>  
        <script type="text/javascript" src="../jquery/klass.min.js"></script>
        <script src="../jquery/jquery.ui.core.js"></script>
        
        <!-- AJOUT DES SCRIPTS POUR L'AFFICHAGE DE LA GALERIE -->
        <SCRIPT type="text/javascript" src="../jquery/code.photoswipe.jquery-3.0.4.min.js"></script>

    </head> 
    <body>
        <!-- /header -->
        <div data-role="header"  data-theme="b">
            <table width="100%">
                <tr>
                    
                    <!-- Valais flag -->
                    <th><span id="logo"><a href="../index.php" rel="external"><img src="../jquery/images/logo_valais_OK.png" /></a></span></th>
                </tr>
            </table>
        </div>
<div data-role="content">
        <H2>Administration des images</h2>
        <div class="tableauPage">
            <a href="../addPhotos.php" data-role="button" data-inline="true" rel="external">Ajouter des images</a>
            <a href="../deletePhotos.php" data-role="button" data-inline="true" rel="external">Supprimer des images</a>
        </div>
</div>

    </body>
</html>